package com.doit.day02;

import java.util.*;

public class HeroTest {
    public static void main(String[] args) throws Exception {
        /*HeroIterator heroIterator = new HeroIterator();
        while (heroIterator.hasNext()){
            System.out.println(heroIterator.next());
        }*/
/*        MysqlIterator mysqlIterator = new MysqlIterator();
        while (mysqlIterator.hasNext()){
            System.out.println(mysqlIterator.next());
        }*/

        MyIterable heroes = new MyIterable();
        for (Hero hero : heroes) {
            System.out.println(hero);
        }

    }
}
